package com.woniuxy.mapper;

import com.woniuxy.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: 马宇航
 * @Description: TODO
 * @DateTime: 25/08/26/星期二 11:51
 * @Component: 成都蜗牛学苑
 **/
@Repository
public interface UserMapper extends JpaRepository<User,Integer> {
    List<User> findAllByHobbyId(int i);

    List<User> findAllByHobbyIdAndUsernameLike(int i, String s);

    List<User> findAllByHobbyIdOrderByIdDesc(int i);

    User findByUsernameLike(String username);
}
